package com.iretailer.report.main;

import java.text.MessageFormat;

/**
 * @Auther: xjw
 * @Date: 2019/1/31 13:44
 * @Description:
 */
public class Person {
    public Person() {
    }

    public Person(String name, Integer age) {
        this.name = name;
        this.age = age;
    }

    private String name;
    private Integer age;
    private String group;

    public String getGroup() {
        if (this.name != null && this.age != null) {
            return MessageFormat.format("{0}_{1}", this.name, this.age);
        } else {
            return "";
        }
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
}
